package com.example.zhunongzonghe.common;

import com.fasterxml.jackson.databind.ObjectMapper;

public class JsonUtils {

    // 私有静态变量，用于存储 ObjectMapper 单例
    private static final ObjectMapper objectMapper = new ObjectMapper();

    // 私有构造方法，防止外部实例化
    private JsonUtils() {
    }

    // 获取 ObjectMapper 单例的静态方法
    public static ObjectMapper getObjectMapper() {
        return objectMapper;
    }
}
